
#include <iostream>
#include <cmath>
using namespace std;

int main()
{
	int n; 
	cin>>n;
	int h;
	int w;
	for(int i=0; i<n; i++){
		cin>>h;
		cin>>w;
		float s = 0.9*(h-100)*2;
		float offset = w-s ;
		s *= 0.1;
		if( offset >= s ){
			cout<<"You are tai pang le!"<<endl;
		} else if( offset>-s ){
			cout<<"You are wan mei!"<<endl;
		} else {
			cout<<"You are tai shou le!"<<endl;
		}
	}

	return 0;
}
